package com.web.dao.impl;

import com.entity.Explaindetailrecord;
import com.entity.ExplaindetailrecordExample;
import com.mapper.ExplaindetailrecordMapper;
import com.page.PageInfo;
import com.web.dao.ExplaindetailrecordDao;
import com.web.dao.ExplaindetailrecordForCustomerDao;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

@Repository("explaindetailrecordDao")
public class ExplaindetailrecordDaoImpl implements ExplaindetailrecordDao, ExplaindetailrecordForCustomerDao {
    @Resource
    ExplaindetailrecordMapper explaindetailrecordMapper;



    public  Explaindetailrecord selectByPrimaryKey(String cid) throws Exception {
        return explaindetailrecordMapper.selectByPrimaryKey(cid);
    }










    public int add(Explaindetailrecord explaindetailrecord) throws Exception {
        return explaindetailrecordMapper.insertSelective(explaindetailrecord);
    }

    public int update(Explaindetailrecord explaindetailrecord) throws Exception {
        return explaindetailrecordMapper.updateByPrimaryKeySelective(explaindetailrecord);
    }
}
